

cc.Class({
    extends: cc.Component,

    properties: {
   
        closeBtn:cc.Button,
        sureSuccessbtn:cc.Button,
        bestLabel:cc.Label,
        wxNumberPhone:cc.String

    },

  closeView:function(){

     this.node.active=false
     wx.setClipboardData({
      data: this.wxNumberPhone,
      success(res) {
       
        console.log("剪贴板复制成功",res)
      }
    })
   

  },

  init(coinNumber){

    console.log("消耗的星币",coinNumber);
    this.wxNumberPhone=coinNumber
    this.bestLabel.getComponent(cc.Label).string=coinNumber
  },


    start () {

    },

    // update (dt) {},
});
